package model

type GroupStats struct {
	MemberId                             string `json:"member_id" xorm:"member_id"`
	ChannelName                          string `json:"channel_name" xorm:"channel_name"`
	ViewId                               string `json:"view_id" xorm:"view_id"`
	CountTransactionInQueue              int    `json:"count_transaction_in_queue" xorm:"count_transaction_in_queue"`
	CountTransactionChecked              int    `json:"count_transaction_checked" xorm:"count_transaction_checked"`
	CountConflictDelete                  int    `json:"count_conflict_delete" xorm:"count_conflict_delete"`
	CountTransactionRowValidating        int    `json:"count_transaction_row_validating" xorm:"count_transaction_row_validating"`
	TransactionsCommittedAllMembers      string `json:"transactions_committed_all_members" xorm:"transactions_committed_all_members"`
	LastConflictFreeTransaction          string `json:"last_conflict_free_transaction" xorm:"last_conflict_free_transaction"`
	CountTransactionRemoteInApplierQueue int    `json:"count_transaction_remote_in_applier_queue" xorm:"count_transaction_remote_in_applier_queue"`
	CountTransactionRemoteApplier        int    `json:"count_transaction_remote_applier" xorm:"count_transaction_remote_applier"`
	CountTransactionLocalProposed        int    `json:"count_transaction_local_proposed" xorm:"count_transaction_local_proposed"`
	CountTransactionLocalRollback        int    `json:"count_transaction_local_rollback" xorm:"count_transaction_local_rollback"`
}

func (s GroupStats) TableName() string {
	return "replication_group_member_stats"
}
